#pragma once
#using <System.dll>

using namespace System;
using namespace System::Collections::Specialized;

namespace Ws2Com {
	namespace Http {

		public enum class Method {
			POST = 3,
			GET = 1
		};

		public ref class Uri {
		public:
			Uri(String^ url, Method method);
		public:
			String^ Url;
			Method Method;
		};

		public ref class HttpWebRequest {
		public:
			HttpWebRequest(Ws2Com::Http::Uri^ uri);
			HttpWebRequest(Ws2Com::Http::Uri^ uri, NameValueCollection^ headers);
		public:
			int Timeout = 10;
			Ws2Com::Http::Uri^ Uri;
			NameValueCollection^ Headers;
			String^ Body;
			bool Redirect;
		};
	}
}
